package com.gao.flying.mq.config;

import org.apache.commons.digester3.annotations.rules.ObjectCreate;
import org.apache.commons.digester3.annotations.rules.SetProperty;

/**
 * @author gaojh
 * @date 2016/7/12
 */
@ObjectCreate(pattern = "config/broker")
public class Broker {

    @SetProperty(pattern = "config/broker", attributeName = "name")
    private String name;

    @SetProperty(pattern = "config/broker", attributeName = "url")
    private String url;

    @SetProperty(pattern = "config/broker", attributeName = "username")
    private String username;

    @SetProperty(pattern = "config/broker", attributeName = "password")
    private String password;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
